package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Tang
 * @date 2023/4/11
 */
@EnableCaching
@EnableTransactionManagement
@ServletComponentScan           //作用：扫描@WebFilter修饰的过滤器，将这个过滤器交由IOC容器管理
@MapperScan("com.itheima.dao")  //作用：扫描指定包下的dao接口，并为其生成代理对象
@Slf4j
@SpringBootApplication
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动完成！");
        log.info("git热身");}
}
